﻿using AiXiu.IDAL;
using AiXiu.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXiu.DAL
{
    public class AccountdService : IAccountdService
    {
        /// <summary>
        /// 通过用户名查找登录信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns></returns>
        public TBLogins FindByUserName(string userName)
        {
            AiXiuDbConten dbConten = new AiXiuDbConten();
            return dbConten.TBLogins.SingleOrDefault(e => e.UserName == userName);
        }
    }
}
